import request from '@/utils/request'

// 查询列表
export function listPdr(data) {
    return request({
        url: '/wbzj-user/producer/getPageList',
        method: 'post',
        data: data
    })
}
export function listPdrRelInfo(data) {
    return request({
        url: '/wbzj-user/producer/getRelInfoPageList',
        method: 'post',
        data: data
    })
}

// 查询厂商详情
export function getPdrByPdrId(query) {
    return request({
        url: '/wbzj-user/producer/getProducerByPrdId',
        method: 'get',
        params: query
    })
}

export function updatePdrByPdrId(data) {
    return request({
        url: '/wbzj-user/producer/updateProducerByPdrId',
        method: 'post',
        data: data
    })
}


export function savePdr(data) {
    return request({
        url: '/wbzj-user/pfmPdr/savePdr',
        method: 'post',
        data: data
    })
}
